package com.fm.webreader.html.table;

import com.fm.base.util.Pair;

public class HtmlTd<V> {
	V value;
	Pair<Integer, Integer> rowInterval;
	Pair<Integer, Integer> colInterval;

	public HtmlTd(final V value, final Pair<Integer, Integer> rowInterval, final Pair<Integer, Integer> colInterval) {
		this.value = value;
		this.rowInterval = rowInterval;
		this.colInterval = colInterval;
	}

	public V getValue() {
		return value;
	}

	public Pair<Integer, Integer> getColInterval() {
		return colInterval;
	}

	public Pair<Integer, Integer> getRowInterval() {
		return rowInterval;
	}

	@Override
	public String toString() {
		return value.toString();
	}
}
